.class public Lcom/estrongs/android/pop/app/UninstallMonitorActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "UninstallMonitorActivity.java"


# static fields
.field static f:Lcom/estrongs/android/ui/dialog/o;


# instance fields
.field private d:Lcom/estrongs/android/statistics/b;

.field e:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->d:Lcom/estrongs/android/statistics/b;

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 8
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x10800000

    .line 9
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const-string v1, "packageName"

    .line 10
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "appName"

    .line 11
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 12
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/content/Intent;)V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->D0()Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 2
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    return-void

    :cond_0
    if-nez p1, :cond_1

    .line 3
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    return-void

    :cond_1
    const-string v0, "packageName"

    .line 4
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v2, "appName"

    .line 5
    invoke-virtual {p1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz v0, :cond_3

    if-nez p1, :cond_2

    goto :goto_0

    .line 6
    :cond_2
    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 7
    :cond_3
    :goto_0
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/e;->d()Lcom/estrongs/android/pop/app/analysis/e;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/analysis/e;->b(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 14
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/e;->d()Lcom/estrongs/android/pop/app/analysis/e;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/estrongs/android/pop/app/analysis/e;->d(Ljava/lang/String;)V

    if-eqz v0, :cond_1

    .line 15
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_0

    .line 16
    :cond_0
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;)V

    return-void

    :cond_1
    :goto_0
    const-string p1, "uninstallApp"

    const-string p2, "no remnant folders!"

    .line 17
    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Les/mg$r;",
            ">;)V"
        }
    .end annotation

    .line 19
    sget-object v0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->f:Lcom/estrongs/android/ui/dialog/o;

    if-nez v0, :cond_0

    .line 20
    new-instance v0, Lcom/estrongs/android/ui/dialog/o;

    new-instance v6, Lcom/estrongs/android/pop/app/UninstallMonitorActivity$a;

    invoke-direct {v6, p0}, Lcom/estrongs/android/pop/app/UninstallMonitorActivity$a;-><init>(Lcom/estrongs/android/pop/app/UninstallMonitorActivity;)V

    move-object v1, v0

    move-object v2, p0

    move-object v3, p2

    move-object v4, p1

    move-object v5, p3

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/ui/dialog/o;-><init>(Les/sp;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Landroid/content/DialogInterface$OnDismissListener;)V

    sput-object v0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->f:Lcom/estrongs/android/ui/dialog/o;

    goto :goto_0

    .line 21
    :cond_0
    invoke-virtual {v0, p2, p1, p3}, Lcom/estrongs/android/ui/dialog/o;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 22
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :goto_0
    return-void
.end method


# virtual methods
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->d:Lcom/estrongs/android/statistics/b;

    const-string v0, "act4"

    const-string v1, "uninstall"

    .line 3
    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    sget-boolean p1, Lcom/estrongs/android/pop/j;->m0:Z

    if-nez p1, :cond_0

    const/4 p1, 0x0

    .line 5
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->a(Landroid/content/Intent;)V

    :cond_0
    const/4 p1, 0x1

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m(Z)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->f:Lcom/estrongs/android/ui/dialog/o;

    if-eqz v0, :cond_0

    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/o;->g:Lcom/estrongs/android/ui/dialog/q;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    sget-object v0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->f:Lcom/estrongs/android/ui/dialog/o;

    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/o;->g:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 3
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    return-void
.end method

.method protected onResume()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/UninstallMonitorActivity;->e:Z

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :cond_0
    return-void
.end method
